<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php $cdn = Kohana::config('app_config.cdn_url');
?><html>
<head>
	<title><?php echo $title;?></title>
	<link rel="stylesheet" type="text/css" 
		href="<?php echo $cdn;?>html/css/style.css.php" />
	<link rel="stylesheet" type="text/css" 
		href="<?php echo $cdn;?>html/css/ui+lightness/jquery-ui-1.8.14.custom.css" />
	<script type="text/javascript"
		src='<?php echo $cdn;?>html/js/jquery-1.5.1.min.js'></script>
	<script type="text/javascript"
		src='<?php echo $cdn;?>html/js/jquery-ui-1.8.14.custom.min.js'></script>
	<script type="text/javascript"
		src='<?php echo $cdn;?>html/js/all.js.php'></script>
	<script type="text/javascript">
var AppData = new Object;
AppData.uid = <?php echo $uid;?>;
AppData.base_url = '<?php echo My_URL::app_url();?>';
AppData.cdn_url = '<?php echo $cdn;?>';
	</script>
</head>
<body>
<div id="colorbar">
	<form id='logout_button' action="" method="post"><input type='submit' name='logout' value='' /></form>
	<div style='clear:right;height:9px;'></div>
	<a class='toplinks' style="margin-left:165px;" href="<?php echo My_URL::app_url();?>"><img src="<?php echo $cdn?>html/img/home_btn.jpg" /></a>
	<a class='toplinks' href="<?php echo My_URL::app_url("user/viewprofile/$uid");?>"><img src="<?php echo $cdn?>html/img/profile_btn.jpg" /></a>
	<a class='toplinks' href="<?php echo My_URL::app_url();?>"><img src="<?php echo $cdn?>html/img/inbox_btn.jpg" /></a>
	<a class='toplinks' href="<?php echo My_URL::app_url();?>"><img src="<?php echo $cdn?>html/img/photos_btn.jpg" /></a>
	<a class='toplinks' href="<?php echo My_URL::app_url();?>"><img src="<?php echo $cdn?>html/img/videos_btn.jpg" /></a>
	<a class='toplinks' href="<?php echo My_URL::app_url();?>"><img src="<?php echo $cdn?>html/img/blogs_btn.jpg" /></a>
	<a class='toplinks' href="<?php echo My_URL::app_url();?>"><img src="<?php echo $cdn?>html/img/qa_btn.jpg" /></a>
</div><!-- EOD top bar -->
<div style='width:1024px;margin:0px auto;'>
	<div style='width:200px;height:600px;float:left;'>
		<?php $left_panel = View::factory('left_panel');
		$left_panel->friends = $friends;
		echo $left_panel;?>
	</div>
	<div style='margin-left:200px;'>
		<div style='width:250px;height:500px;float:right'>
			<?php $right_panel = View::factory('right_panel');
				$right_panel->friends = $friends;
				echo $right_panel;
			?>
		</div>
		<div>
			<?php if(isset($child_view))echo $child_view;?>
		</div>
	</div>
</div>
<div style='text-align:center;'><!-- bottom links -->
	<hr>
	<a class='footer_links' href='#'>About us</a>
	<a class='footer_links' href='#'>Careers</a>
	<a class='footer_links' href='#'>Policy</a>
	<a class='footer_links' href='#'>Etc</a>
</div><!-- EOD bottom bar -->
</body>
</html>